package ink.ykb.droolstest.drools.dto;

import org.drools.core.spi.KnowledgeHelper;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Utils {
	
	public static void helper(final Object message){
		log.info(message != null ? message.toString():null);
	}
	
	public static void helper(final KnowledgeHelper drools, final Object message){
	      log.info("规则触发:【 {}】，info：{}" , drools.getRule().getName(),(message != null ? message.toString():null));
	   }
	   
	   public static void helper(final KnowledgeHelper drools){
		   log.info("规则触发: " + drools.getRule().getName());
	   }

}
